package com.dingwen.treasure.business.controller;

import com.dingwen.treasure.base.controller.BaseViewController;
import com.dingwen.treasure.base.pojo.vo.Result;
import com.dingwen.treasure.business.model.vo.DesensitizationVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 　DesensitizationController: 数据脱敏测试API
 * 　@author dingwen
 * 　@date 2022/7/20
 */
@Api(tags = "数据脱敏测试API")
@RestController
@Slf4j
@RequestMapping("desensitization")
public class DesensitizationController implements BaseViewController {

    @ApiOperation(value = " 数据脱敏测试", response = Result.class)
    @GetMapping
    public Result<DesensitizationVo> test() {
        return success(DesensitizationVo
                .builder()
                .password("123456")
                .phone("18314515698")
                .build());
    }

}
